package com.kongjs.application.model.vo;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;
import java.util.Set;

@Getter
@Setter
@ToString
public class UpdateRoleVO {
    private Long parentId;
    @NotBlank(message = "角色名称不能为空")
    private String roleName;
    @NotBlank(message = "角色标识不能为空")
    private String authority;
    @Min(message = "启用状态 0 停用", value = 0)
    @Max(message = "启用状态 1 启用", value = 1)
    @NotNull(message = "启用状态不能为空")
    private Integer enabled;
    private String remark;
    private Set<Long> menuIds;
    private Set<Long> roleIds;
    private Set<Long> permissionIds;
}
